<template>
  <van-form @submit="onSubmit">
    <!-- 内容 -->
    <div style="margin: 16px;">
        <van-button round block type="info" native-type="submit">{{myItem.propValues[editIndex].value?'更新':'新增'}}</van-button>
    </div>
  </van-form>
</template>
<script>
export default {
    props: {
    myItem: {},
  },
  data() {
    return {
      editIndex: 0,
    }
  },
  methods: {
    onSubmit(values) {
      console.log('submit', values);
    },
  }
};
</script>